cmake_minimum_required(VERSION 3.15)
project(sysinfod C)

set(CMAKE_C_STANDARD 99)


include_directories(/usr/local/include/)

link_directories(/usr/local/lib/)


add_executable(sysinfod main.c header/cjson/cJSON.h cjson/cJSON.c header/cjson/cJSON_Utils.h cjson/cJSON_Utils.c
        header/cpu/cpu_info.h cpu/cpu_info.c  header/disk/disk_info.h disk/disk_info.c
        header/net/net_info.h net/net_info.c header/proc/proc_info.h proc/proc_info.c header/utils/utils.h utils/utils.c proc/proc_info.c header/evhttp/httpserver.h evhttp/httpserver.c header/mem/mem_info.h config.h)

target_link_libraries(sysinfod pthread /usr/local/lib/libevent.a /usr/local/lib/libevent_core.a /usr/local/lib/libevent_core.a /usr/local/lib/libevent_pthreads.a)